<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="main.css">
  <title>首页</title>
</head>
<body>
  <h1>首页</h1>
  <p><%=title %></p>

  <h2>用户信息</h2>
  <p><%=info.name%>:<%=info.age%></p>

  <h2>判断条件</h2>
  <p>
    <%if(flag) {%>
      放假
    <%}else {%>
      休息
    <%}%>
  </p>

  <h2>循环</h2>
  <ul>
    <%for(let i = 0; i < list.length; i++) {%>
      <li><%=list[i].name%></li>
    <%}%>
  </ul>

  <!-- 引入其它模板 -->
  <%-include("footer.ejs")%>
</body>
</html>